package com.mkz.core.mybatis;

import java.util.Properties;
import javax.annotation.Resource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义mybatis拦截器
 *
 * @author zengsong
 * @version 1.0
 * @description
 * @date 2019/5/30 10:17
 **/
@Configuration
public class MybatisInterceptorConfig {
	@Resource
	private MybatisResultInterceptor mybatisResultInterceptor;

	@Bean
	public String myInterceptor() {
		Properties properties = new Properties();
		this.mybatisResultInterceptor.setProperties(properties);
		return "interceptor";
	}
}
